package com.xca.znb.model.impl;

import android.content.Context;

import com.xca.znb.database.UserDAO;
import com.xca.znb.entity.Account;
import com.xca.znb.entity.User;
import com.xca.znb.model.imodel.IBilling;

import java.util.List;

public class BillingImpl implements IBilling {
    private UserDAO userDAO;
    public BillingImpl(Context context){userDAO = new UserDAO(context) ;}


    @Override
    public List<Account> getAccount(String phone) {
        return userDAO.getAccountByPhone(phone);
    }

    @Override
    public User getUser(String phone) {
      return userDAO.getUser(phone);
    }
}
